export default [
  {
    path: "/",
    name: "index",
    component: () => import("@/views/layout/index.vue"),
    
    // path: "/home",
    // name: "homeIndex",
    // component: () => import("@/views/home/index.vue"),
    // meta: {
    //   isShow: true, // 控制当前项是否在菜单栏中渲染出来，比如你写了 login 页面的路由，但是并不希望 login在menu菜单中渲染出来，即可设为false
    //   title: "首页", // menu菜单项的名称，没啥好说的
    //   icon: "menu-home", // menu菜单项的图标，我此处是与封装好的 svg 组件结合使用的
    // },

    children: [
      {
        path: "/home",
        name: "homeIndex",
        component: () => import("@/views/home/index.vue"),
        meta: {
          isShow: true, // 控制当前项是否在菜单栏中渲染出来，比如你写了 login 页面的路由，但是并不希望 login在menu菜单中渲染出来，即可设为false
          title: "首页", // menu菜单项的名称，没啥好说的
          icon: "menu-home", // menu菜单项的图标，我此处是与封装好的 svg 组件结合使用的
        },
      },
      {
        path: "/test",
        name: "testIndex",
        component: () => import("@/views/test/index.vue"),
        meta: {
          isShow: true, 
          title: "测试页面",
          icon: "menu-home",
        },
      },
      {
        path: "/echarts",
        name: "echartIndex",
        redirect:'/echarts/barCharts',
        // component: () => import('@/views/echarts/index.vue'),
        meta: {
          isShow: true,
          title: "Echarts页",
          icon: "menu-echarts",
        },
        children: [
          {
            path: "/echarts/barCharts",
            name: "barCharts",
            component: () => import("@/views/echarts/barCharts.vue"),
            meta: {
              title: "柱状图",
            },
          },
          {
            path: "/echarts/pieCharts",
            name: "pieCharts",
            component: () => import("@/views/echarts/pieCharts.vue"),
            meta: {
              title: "饼图",
            },
          },
        ],
      },
    ],
  },
];
